﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Torch_IServices
{
    public interface INewsBll
    {
        Task<int> AddNewsAsync(string title, string info, int browse,string sourceDescription);
        Task<int> EditNewsAsync(int id, string title, string info, int browse, string sourceDescription);
        Task<int> DeleteNewsAsync(int id);
        Task<List<NewsDto>> GetNewsAllAsync();
        Task<NewsDto> QueryNewsByIdAsync(int id);
        Task<List<NewsDto>> QueryNewsByNameAsync(string title);
    }
}
